package com.bestcem.xm.member.service.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.List;

/**
 * dao 层分页通用返回结果
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/5/12-11:32
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PageDTO<T> {
    /**
     * 分页数据
     */
    private List<T> rows;
    /**
     * 记录总数
     */
    @JsonProperty(value="total_count")
    private Integer total;
}
